import { request } from "../utils/request";
/**
 * 佣金生成明细
 */
export function getCommissionGenerateDetailsListByCustId(data) {
  return new Promise(res => {
    res(request('/commissionBalanceController/getCommissionGenerateDetailsListByCustId','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 佣金支付明细
 */
export function getCommissionWithdrawDetailsListByCustId(data) {
  return new Promise(res => {
    res(request('/commissionBalanceController/getCommissionWithdrawDetailsListByCustId','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 根据Id查询佣金持仓
 */
export function getCommissionBalanceByCustId(data) {
  return new Promise(res => {
    res(request('/commissionBalanceController/getCommissionBalanceByCustId','POST',data))
  })
}
/**
 * 佣金提现
 */
export function commissionWithdraw(data) {
  return new Promise(res => {
    res(request('/commissionBalanceController/commissionWithdraw','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}

  /**
 * 佣金转让
 */
export function commissionTransfer(data) {
  return new Promise(res => {
    res(request('/commissionBalanceController/commissionTransfer','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}